<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>New window</title>
</head>
<body>
<script>
    document.cookie = 'cookie=from-new-window;path=/';
    window.close();
</script>
</body>
</html>
